<#if dataBaseModel??>
<html lang="cn" class="app">
<head>
    <title></title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
</head>

<body>
    <div style="width:80%;margin: auto;">
        <h3>数据库: ${dataBaseModel.dbName}</h3>
        <#list dataBaseModel.tableModelList as table>
        <br>
        <div style="page-break-inside: avoid;">
            <h4 style="background-color:#d2d2d2;border-color:#787878;border-style:solid;padding: 8px;">${table.tableName} - [ ${table.tableDesc} ]</h4>
            <table border="0" cellspacing="0" cellpadding="8px" width="100%%">
                <tbody>
                <tr>
                    <td width="(null)%"> </td>
                    <th style="border-bottom:2pt solid #000000;text-align:left" width="35%">字段</th>
                    <th style="border-bottom:2pt solid #000000;text-align:left" width="30%">类型</th>
                    <th style="border-bottom:2pt solid #000000;text-align:left" width="15%">允许为空</th>
                    <th style="border-bottom:2pt solid #000000;text-align:left" width="20%">注释</th>
                </tr>
                <#list table.columns as column>
                <tr>
                    <td width="30px;"><#if column.key=="PRI">P&nbsp;&nbsp;</#if><#if column.key=="MUL">F&nbsp;&nbsp;</#if></td>
                    <td width="35%">${column.dbColumnName}</td>
                    <td width="30%">${column.columnType}</td>
                    <td width="15%"><#if column.isNull=="1">Y</#if><#if column.isNull=="0">N</#if></td>
                    <td width="20%">${column.columnDesc}</td>
                </tr>
                </#list>

                <#--<tr>-->
                    <#--<td width="(null)%">P</td>-->
                    <#--<td width="35%">year</td>-->
                    <#--<td width="30%">varchar(4)</td>-->
                    <#--<td width="15%">No</td>-->
                    <#--<td width="20%"></td>-->
                <#--</tr>-->

                </tbody>
            </table>
        </div>
        </#list>
    </div>

</body>

</html>
</#if>